//模版管理-模版列表-选择用户
App.util.ns('Admin.Template.Message');
Admin.Template.Message.SendMessage = function(dataTable){
    var win = new App.Win({name: 'template_message', width: '500px'});
    //列表
    win.dataTable = new App.DataTable({
        baseUrl: '/admin/user/user',
        dataUrl: 'lists?status=1',
        table: {
            id: 'id',
            main: 0,
            //showId: false,
            columns: [
                {name: '用户名称', value: function(item){
                    return '/'+(item.user ? item.user.nickname+'/' : '')+item.nickname;
                }}
            ],
        },
        filter: [
            {type: 'keywords'}
        ],
        //floatable: false,
        //paginator: false
    });
    win.setContent(win.dataTable.frame);
    win.hide();
    //加载数据
    win.dataTable.loadData();
    return win;
};